home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000360_news@columbia.edu_Thu May 11 06:26:00 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA08535
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 11 May 1995 02:16:52 -0400
  3. Received: by apakabar.cc.columbia.edu id AA16835
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 11 May 1995 02:16:50 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!swrinde!gatech!europa.chnt.gtegsc.com!library.ucla.edu!info.ucla.edu!news.bc.net!unixg.ubc.ca!rover.ucs.ualberta.ca!tribune.usask.ca!canopus.cc.umanitoba.ca!newsflash.concordia.ca!csbn2.concordia.ca!cabilio
  6. From: cabilio@csbn2.concordia.ca
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Terminal emulation in script
  9. Date: 11 May 1995 01:26 -0500
  10. Organization: CSBN Concordia University
  11. Lines: 48
  12. Distribution: world
  13. Message-Id: <11MAY199501261479@csbn2.concordia.ca>
  14. Nntp-Posting-Host: csbn2.concordia.ca
  15. News-Software: VAX/VMS VNEWS 1.41    
  16. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  17.  
  18. Is there no way to have MS-Kermit perform terminal emulation while a script
  19. is running?  Here are two examples of where this would be desirable (I was
  20. using MS-Kermit 3.14 under DOS 6.2 and VMS 5.5-2):
  21.  
  22. First, suppose you have an automated login procedure to a VMS host.  The
  23. script sends the appropriate information in response to the Username: and
  24. Password: prompts, then waits for the $ prompt before it resumes.  Now our
  25. system SYLOGIN.COM issues a SET TERMINAL/INQUIRE to set the terminal
  26. characteristics upon login, which works fine if Kermit is in CONNECT
  27. (emulation) mode, but not if it is executing the script command INPUT 30 $.
  28. After the INQUIRE times out, VMS issues an error message and thenceforth
  29. treats the terminal as a dumb TTY.
  30.  
  31. One can get around the first problem by including a post-login script
  32. command like OUTPUT SET TERMINAL/DEVICE=VT300\13, but this is a kludge.
  33. And here is a second, more difficult example.  Suppose an MS-Kermit script
  34. includes an OUTPUT command that invokes a VMS .COM procedure.  Among other
  35. things, the .COM issues an escape sequence to the terminal to put it into
  36. autoprint mode, so that some information should come out on the printer
  37. attached to the PC.  Again, works fine if Kermit is in CONNECT mode, but if
  38. it is executing an INPUT command at the time then the host's escape
  39. sequence is ignored.
  40.  
  41. At first I thought I was missing something, since MS-Kermit's developers
  42. seem to have thought of everything in this mature product.  Yet I could not
  43. find this problem addressed in my copy of "Using MS-Dos Kermit" 2nd ed. by
  44. Christine Gianone, nor in KERMIT.UPD, nor in the FAQ, nor in any articles
  45. current in this newsgroup.  It is all the more surprising because one
  46. commercial product I have used in the past includes the equivalent of an
  47. INPUT command with terminal emulation while it waits.  Christine does note
  48. that no terminal emulation occurs during the INPUT command, but I found
  49. this to be equally true with the PAUSE command, leading me to infer that
  50. terminal emulation occurs only in CONNECT mode.  Is this correct, or am I
  51. just misunderstanding something?
  52.  
  53. There is only one way I can see of accomplishing the kind of thing I
  54. described.  I have not yet studied the new APC feature in detail or tried
  55. it out, but I can see how it might be used to trade control back and
  56. forth between the host and MS-Kermit: the Kermit script starts up a .COM on
  57. the host and goes into CONNECT mode, while the .COM does its thing and then
  58. issues an APC to transfer control back to a Kermit script, and so forth.
  59. Does this sound feasible?  If so, it is better than nothing, but it seems a
  60. cumbersome solution to what appears to be a simple problem.
  61.  
  62. Much obliged for any observations you might have.
  63.  
  64. Steve Cabilio (cabilio@csbn2.concordia.ca)
  65.